using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

using YouHP.Model;
using YouHP.Model.Group;

namespace YouHP.IDAL
{
    public interface ITags
	{
		#region basic operations

        bool CreateTopicTag(String[] tagStrArr , int objTypeId, int objId, int userId);

        bool DelTopicTag(String[] tagStrArr, int objTypeId, int objId);
        bool AddTag(TagInfo info);
		
        bool AddTagRelation(TagRelationInfo info);
        bool DelTagRelation(int objTypeid, int objId,int tagId);

        List<TagInfo> GetHotTagList(int pageSize, int pageIndex, out int count);

        List<TagInfo> GetTagListByObjId(int pageSize,int pageIndex, int objTypeId, int objId, out int count);

        TagInfo GetTagByName(string tag);

        List<TopicInfo> GetTopicListByTag(int pagesize, int pageIndex, string tagName, out int count);
        List<LogTopicInfo> GetLogTopicListByTag(int pagesize, int pageIndex, string tagName, out int count);

        bool UpdateTagInfo(string TagName, int TagCntVal,int FCntVal, int LCntVal, int PCntVal, int VCntVal);

		#endregion

    }
}